

#ifndef   _UCPLPLOTFACTORY_H
#define   _UCPLPLOTFACTORY_H

#include "zacpl.h"

class UcPlPlotEngine;

class UcPlPlotFactory
{
public:

    enum PreviewEngineFlags {
        kShowPlot            = 0x0001,  
        kShowNextSheet       = 0x0002,  
        kShowPreviousSheet   = 0x0004   
    };

    static UCPL_PORT Ucad::ErrorStatus createPublishEngine(UcPlPlotEngine *& pEngine);
    static UCPL_PORT Ucad::ErrorStatus createPreviewEngine(UcPlPlotEngine *& pPreview, 
                                                           long nPreviewFlags = kShowPlot);
};

enum ProcessPlotState
{
    kNotPlotting = 0,       
    kForegroundPlotting,    
    kBackgroundPlotting     
                            
};

UCPL_PORT ProcessPlotState __stdcall ucplProcessPlotState();

#endif 
